﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="menu.aspx.cs" Inherits="Admin_menu" %>

<%@ Register src="UserControls/GridPager.ascx" tagname="GridPager" tagprefix="uc1" %>

<%@ Register src="UserControls/Location.ascx" tagname="Location" tagprefix="uc2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <script src="js/jquery.js" type="text/javascript"></script>

    <script src="js/jqtreetable.js" type="text/javascript"></script>

    <link href="css/jqtreetable.css" rel="stylesheet" type="text/css" />
</head>
<body class="MenuBody">
    <form id="form1" runat="server">
    <div>
    <!--当前位置开始-->
        <uc2:Location ID="Location1" runat="server" />        
        <!--当前位置结束-->
        <asp:GridView ID="GridView1" runat="server" AllowSorting="True" 
            AutoGenerateColumns="False"            
                EmptyDataText="未找到相关数据" SkinID="MenuGrid" 
            onpageindexchanging="GridView1_PageIndexChanging" 
            onsorting="GridView1_Sorting" ondatabound="GridView1_DataBound">
            <EmptyDataTemplate>            
            <a href="<%= ThisTable.AddUrl.Replace("{0}","0") %>">添加</a>
            </EmptyDataTemplate>
        </asp:GridView>
    
    </div>
    </form>    
    <script language="javascript">
        $(function()
        {
            var map=[<%=this.GetMap() %>];
            if (map.length>0)
            {
            var options = {openImg: "images/jqTreeTable/tv-collapsable.gif", shutImg: "images/jqTreeTable/tv-expandable.gif", leafImg: "images/jqTreeTable/tv-item.gif", lastOpenImg: "images/jqTreeTable/tv-collapsable-last.gif", lastShutImg: "images/jqTreeTable/tv-expandable-last.gif", lastLeafImg: "images/jqTreeTable/tv-item-last.gif", vertLineImg: "images/jqTreeTable/vertline.gif", blankImg: "images/jqTreeTable/blank.gif", collapse: false, column: 0, striped: false, highlight: false, onselect: function(target){}};
            $("#GridView1 tbody").jqTreeTable(map, options);
            }
        });
    </script>
</body>
</html>
